package com.example.academic_affairs_system.controller;

import com.example.academic_affairs_system.common.R;
import com.example.academic_affairs_system.service.IAasClassCoursesService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 前端控制器
 *
 * @author hjx
 * @since 2023-01-31
 */
@RestController
@RequestMapping("/sys/classcourses")
public class AasClassCoursesController {
  @Resource IAasClassCoursesService iAasClassCoursesService;

  @GetMapping("/{id}")
  public R classCourses(@PathVariable("id") long id) {
    return R.ok(iAasClassCoursesService.getClassCoursesVOList(id));
  }


}
